<?php

/**
 * 首页入口文件
 */

include("./includes/fun.global.php");
if ($conf['CloseWebsite'] <> '') show_msg('闭站通知', $conf['CloseWebsite'], '4', false, false);
if ($conf['userbinding'] == -1 && $conf['userdomaintype'] == 1) {
    if (href() != $accredit['url'] && href() != 'www.' . $accredit['url']) {
        $Get = $DB->get_row("SELECT domain FROM `sky_user` WHERE `domain` = '" . href() . "' ");
        if (!$Get) show_msg('域名未绑定提醒', '<center><svg t="1597765490047" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4454" width="128" height="128"><path d="M512 1024C229.248 1024 0 794.752 0 512S229.248 0 512 0s512 229.248 512 512-229.248 512-512 512zM426.666667 170.666667v426.666666h170.666666V170.666667h-170.666666z m0 512v170.666666h170.666666v-170.666666h-170.666666z" fill="#FF304A" p-id="4455"></path></svg><br><br><h4>当前访问的域名：' . href() . '未绑定，无法访问！</h4><br></center>');
        unset($Get);
    }
}
if (empty($_COOKIE['THEKEY']) && $conf['ForcedLanding'] == 2) header("Location:/user/login.php");
template::get($_QET['mod']);

